package com.tengol.course.spring.boot.boot01.listener;

import com.alibaba.fastjson.JSON;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * HelloCommandRunner
 *
 * @author dongrui
 * @date 2020/05/17
 */
@Component
public class HelloCommandLineRunner implements CommandLineRunner {
    @Override
    public void run(String... args) throws Exception {
        System.out.println("==== HelloCommandLineRunner.run() ....");
        System.out.println(JSON.toJSONString(args));
    }
}
